/**
 * VYPe11 Project
 * VYPe11 language compiler.
 * Authors: Jozef Lang (xlangj01), 
 * 			Zoltan Zemko (xzemko01)
 * 2011
 */

package cz.vutbr.fit.VYPe.team18.VYPe11.codegeneration;

public final class TACStatement {

	public final String operator;
	public final String operand1;
	public final String operand2;
	public final String result;
	
	public TACStatement(String operator, String op1, String op2, String result) {
		this.operator = operator;
		this.operand1 = op1;
		this.operand2 = op2;
		this.result = result;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("[");
		sb.append(operator);
		sb.append(",");
		sb.append(operand1);
		sb.append(",");
		sb.append(operand2);
		sb.append(",");
		sb.append(result);
		sb.append("]");
		return sb.toString();
	}
	
}
